SOSockAtMark


C Specification

#include <dolphin/socket.h>
int SOSockAtMark ( int s );

Description

SOSockAtMark() determines whether the specified socket descriptor is at the out-of-band data mark.

An out-of-band data can be send and received using the SO_MSG_OOB flag for SO_SOCK_STREAM sockets.

Note: The GameCube socket library employs Berkeley interpretation for the TCP urgent pointer:  The TCP urgent pointer points to the byte next to the urgent byte.

Arguments

s The socket descriptor.

Return Values

zero There is no mark, or there is data precedes the mark.
one The out-of-band data mark is the first element in the receive buffer.
SO_EBADF Bad socket descriptor.
SO_ENETRESET Socket library is not initialized.

Note: Additional errors may be generated and returned in future library releases. All the negative return values must be treated as generic errors.

See Also

SORecv() , SOSend()